import Vue from "vue";
import VueRouter from "vue-router";
import ProductView from "../views/ProductView.vue"
import ShopcartView from "../views/ShopcartView.vue"

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "product",
    component: ProductView,
  },
  {
    path:"/product",
    name:"product",
    component:ProductView
  },
  {
    path:"/shopcart",
    name:"shopcart",
    component:ShopcartView
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
